import request from '@/utils/request'

// 查询零头列表
export function listChip(query) {
  return request({
    url: '/wm/out/getChipList',
    method: 'get',
    params: query
  })
}

// 更新零头
export function updateChip(data){
	return request({
		method:"put",
		url:"/wm/out/editChip",
		data:data
	})
}

// 导出零头
export function exportChip(query) {
  return request({
    url: '/wm/out/exportChip',
    method: 'get',
    params: query
  })
}
// 查询仓库列表
export function listWarehouses(query) {
  return request({
    url: '/wm/warehouses/list',
    method: 'get',
    params: query
  })
}